<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_merchants_of_supply_apply-add-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商户ID：</label>
			<div class="layui-input-block">
				<input id="merchantsId" name="merchantsId" placeholder="请输入商户ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商ID：</label>
			<div class="layui-input-block">
				<input id="supplyId" name="supplyId" placeholder="请输入供应商ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品编码：</label>
			<div class="layui-input-block">
				<input id="goodsCode" name="goodsCode" placeholder="请输入商品编码"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">数量：</label>
			<div class="layui-input-block">
				<input id="goodsSize" name="goodsSize" placeholder="请输入数量"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">是否同意  0. 处理中 1:同意  2：不同意：</label>
			<div class="layui-input-block">
				<input id="isAgree" name="isAgree" placeholder="请输入是否同意  0. 处理中 1:同意  2：不同意"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">拒绝理由：</label>
			<div class="layui-input-block">
				<input id="refuseReason" name="refuseReason" placeholder="请输入拒绝理由"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">是否撤销 0：撤销1：未撤销：</label>
			<div class="layui-input-block">
				<input id="isUndo" name="isUndo" placeholder="请输入是否撤销 0：撤销1：未撤销"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">申请类型 0：拿货1：一件代发：</label>
			<div class="layui-input-block">
				<input id="applyType" name="applyType" placeholder="请输入申请类型 0：拿货1：一件代发"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">申请时间：</label>
			<div class="layui-input-block">
				<input id="applyTime" name="applyTime" placeholder="请输入申请时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input id="updateTime" name="updateTime" placeholder="请输入修改时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">删除状态 0：未删除1：已删除：</label>
			<div class="layui-input-block">
				<input id="deleteFlag" name="deleteFlag" placeholder="请输入删除状态 0：未删除1：已删除"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">创建时间：</label>
			<div class="layui-input-block">
				<input id="createTime" name="createTime" placeholder="请输入创建时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_merchants_of_supply_apply-add">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
         			laydate.render({
				elem : '#applyTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
  			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			//监听提交
			form.on('submit(shop_merchants_of_supply_apply-add)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/merchants_of_supply_apply/save", data.field);
				return false;
			});
		});
	</script>
</body>
</html>